import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';

const routes: Routes = [
  { path: '', loadChildren: './page/tabs/tabs.module#TabsPageModule' }, 
  { path: 't1', loadChildren: "./page/test/t1/t1.module#T1PageModule" },
  { path: 't2', loadChildren: "./page/test/t2/t2.module#T2PageModule" },
  { path: 'login', loadChildren: './page/my/login/login.module#LoginPageModule' },
  { path: 'regist', loadChildren: './page/my/regist/regist.module#RegistPageModule' },
  { path: 'findpsw', loadChildren: './page/my/findpsw/findpsw.module#FindpswPageModule' },
  { path: 'set', loadChildren: './page/my/set/set.module#SetPageModule' },
  { path: 'lotdetail', loadChildren: './page/home/lotdetail/lotdetail.module#LotdetailPageModule', pathMatch: "prefix" },
  { path: 'transaction', loadChildren: './page/recharge/transaction/transaction.module#TransactionPageModule' },
  { path: 'promotion', loadChildren: './page/my/promotion/promotion.module#PromotionPageModule' },
  { path: 'join', loadChildren: './page/my/join/join.module#JoinPageModule' },
  { path: 'recommendapp', loadChildren: './page/my/recommendapp/recommendapp.module#RecommendappPageModule' },
  { path: 'conpro', loadChildren: './page/my/conpro/conpro.module#ConproPageModule' },
  { path: 'rule', loadChildren: './page/my/rule/rule.module#RulePageModule' },
  { path: 'lotnet', loadChildren: './page/my/lotnet/lotnet.module#LotnetPageModule' },
  { path: 'personalcenter', loadChildren: './page/my/personalcenter/personalcenter.module#PersonalcenterPageModule' },
  { path: 'transactionlist', loadChildren: './page/recharge/transactionlist/transactionlist.module#TransactionlistPageModule' },
  { path: 'banklist', loadChildren: './page/my/banklist/banklist.module#BanklistPageModule' },
  { path: 'bankadd', loadChildren: './page/my/bankadd/bankadd.module#BankaddPageModule' },
  { path: 'accountrecharge', loadChildren: './page/recharge/accountrecharge/accountrecharge.module#AccountrechargePageModule' },
  { path: 'withdraw', loadChildren: './page/recharge/withdraw/withdraw.module#WithdrawPageModule' },
  { path: 'betsuccess', loadChildren: './page/home/betsuccess/betsuccess.module#BetsuccessPageModule' },
  { path: 'accountrechargeweb', loadChildren: './page/recharge/accountrechargeweb/accountrechargeweb.module#AccountrechargewebPageModule' },
  { path: 'reportlist', loadChildren: './page/report/reportlist/reportlist.module#ReportlistPageModule' },
  { path: 'notice', loadChildren: './page/home/notice/notice.module#NoticePageModule' },
  { path: 'noticedetail', loadChildren: './page/home/noticedetail/noticedetail.module#NoticedetailPageModule' },
  { path: 'registagent', loadChildren: './page/my/registagent/registagent.module#RegistagentPageModule' },
  { path: 'recommendappagent', loadChildren: './page/my/recommendappagent/recommendappagent.module#RecommendappagentPageModule' },
  { path: 'quota', loadChildren: './page/recharge/quota/quota.module#QuotaPageModule' },
  { path: 'wallet', loadChildren: './page/my/wallet/wallet.module#WalletPageModule' },  { path: 'web', loadChildren: './page/home/web/web.module#WebPageModule' },
  { path: 'fklist', loadChildren: './page/my/fklist/fklist.module#FklistPageModule' },
  { path: 'fkdetail', loadChildren: './page/my/fkdetail/fkdetail.module#FkdetailPageModule' },
  { path: 'fk', loadChildren: './page/my/fk/fk.module#FkPageModule' }








];
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule { }
